namespace Upeu.Facturacion.Data.UpeuVentaDataContextMigrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class Initial : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.Clientes",
                c => new
                    {
                        Id = c.Guid(nullable: false, identity: true),
                        Ruc = c.String(),
                        Nombre = c.String(nullable: false),
                        Direccion = c.String(),
                        FechaNac = c.DateTime(),
                    })
                .PrimaryKey(t => t.Id);
            
            CreateTable(
                "dbo.Productos",
                c => new
                    {
                        Id = c.Guid(nullable: false, identity: true),
                        Nombre = c.String(),
                        Descripcion = c.String(),
                        Preciounitario = c.String(nullable: false),
                        Estado = c.DateTime(nullable: false),
                    })
                .PrimaryKey(t => t.Id);
            
            CreateTable(
                "dbo.Proveedores",
                c => new
                    {
                        Id = c.Guid(nullable: false, identity: true),
                        Ruc = c.String(),
                        Nombre = c.String(nullable: false),
                        Apellido = c.String(nullable: false),
                        Direccion = c.String(),
                        Telefono = c.Int(),
                        Celular = c.Int(nullable: false),
                    })
                .PrimaryKey(t => t.Id);
            
            CreateTable(
                "dbo.Trabajadores",
                c => new
                    {
                        Id = c.Guid(nullable: false, identity: true),
                        Nombre = c.String(nullable: false),
                        FechaAcc = c.DateTime(),
                        Direccion = c.String(),
                        Estado = c.Int(),
                    })
                .PrimaryKey(t => t.Id);
            
            CreateTable(
                "dbo.ventass",
                c => new
                    {
                        Id = c.Guid(nullable: false, identity: true),
                        FechaVenta = c.DateTime(),
                        Serie = c.String(nullable: false),
                        NumDoc = c.Int(nullable: false),
                    })
                .PrimaryKey(t => t.Id);
            
        }
        
        public override void Down()
        {
            DropTable("dbo.ventass");
            DropTable("dbo.Trabajadores");
            DropTable("dbo.Proveedores");
            DropTable("dbo.Productos");
            DropTable("dbo.Clientes");
        }
    }
}
